#include <fermat/benchmark/fermat_benchmark.h>
#include <fermat/log/fmtlog.h>

BENCHMARK(log, simple_log, 1, 1)
{
    //static int i = 0;
    fermat::log::LoggerPtr logger = fermat::log::get("file_logger");
    if (!logger) {
        logger = fermat::log::create<fermat::log::simple_file_sink_st>("file_logger", "logs/fmtlog-bench-st.txt", false);
    }
    logger->set_pattern("[%Y-%b-%d %T.%e]: %v");
    for(int i = 0; i < 1000000; i++ ) {
        logger->info("fmtlog message #{} : This is some text for your pleasure", i);
    }
}
